package com.pingan.pastry.entity;

import java.util.List;

/**
 * 妥协方案，题主前端弱鸡，适配前端
 */
public class MenuDto {
    private String name;
    private String controller;
    private List<MenuDto> child;

    public MenuDto() {
    }

    public MenuDto(String name, String controller, List<MenuDto> child) {
        this.name = name;
        this.controller = controller;
        this.child = child;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getController() {
        return controller;
    }

    public void setController(String controller) {
        this.controller = controller;
    }

    public List<MenuDto> getChild() {
        return child;
    }

    public void setChild(List<MenuDto> child) {
        this.child = child;
    }

    @Override
    public String toString() {
        return "MenuDto{" +
                "name='" + name + '\'' +
                ", controller='" + controller + '\'' +
                ", child=" + child +
                '}';
    }
}
